package com.gitee.aurora.server.service.impl;

import com.gitee.aurora.core.utils.ResultVO;
import com.gitee.aurora.server.dao.RuleConfigDao;
import com.gitee.aurora.server.service.RuleConfigService;
import com.gitee.aurora.server.vo.RuleVo;
import com.gitee.aurora.utils.PageParam;
import com.gitee.aurora.utils.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RuleConfigServiceImpl implements RuleConfigService {

    @Autowired
    private RuleConfigDao ruleConfigDao;

    @Override
    public Pagination queryRule(RuleVo ruleVo, PageParam pageParam) {
        return ruleConfigDao.queryRule(ruleVo,pageParam);
    }

    @Override
    public ResultVO updataRule(RuleVo ruleVo) {
        return ruleConfigDao.updataRule(ruleVo);
    }

    @Override
    public ResultVO addRule(RuleVo ruleVo) {
        return ruleConfigDao.addRule(ruleVo);
    }

    @Override
    public ResultVO deleteRule(List<RuleVo> ruleVo) {
        return ruleConfigDao.deleteRule(ruleVo);
    }

    @Override
    public ResultVO getDBTableField(RuleVo ruleVo) {
        return ruleConfigDao.getDBTableField(ruleVo);
    }

    @Override
    public List<String> getCheckTableList() {
        return ruleConfigDao.getCheckTableList();
    }
}
